﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="BySoft.Web.Site.SysManage.UserEdit"
    MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
 <script language="javascript" type="text/javascript">

        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        });
   </script>
    <h1 class="tit">
        系统管理 >> <a href="UserList.aspx">用户管理</a> >> 编辑</h1>
    <div class="tableStyle2">
        <table runat="server" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <th width="20%">
                    <span class="red">*</span>账号：
                </th>
                <td width="30%">
                    <asp:Label ID="lblUserId" runat="server"></asp:Label>
                </td>
                <th width="20%">
                    <span class="red">*</span>姓名：
                </th>
                <td width="30%">
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="20"></asp:TextBox>
                    <span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ErrorMessage="请输入姓名！"
                        ControlToValidate="txtUserName" Display="None" ValidationGroup="gSubmit"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                
                <th width="20%">
                    状态：
                </th>
                <td width="30%">
                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth">
                        <asp:ListItem Value="1">有效</asp:ListItem>
                        <asp:ListItem Value="0">无效</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <th width="20%">
                    是否可配权限：
                </th>
                <td width="30%">
                    <asp:CheckBox ID="chbCanUserRole" runat="server" />
                </td>
            </tr>
            <tr>
                        
                <th>
                    所属部门：
                </th>
                <td>
                    <asp:DropDownList ID="ddlDepartmentID" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth"></asp:DropDownList>
                </td>
                <th>
                    是否部门经理：
                </th>
                <td>
                    <asp:CheckBox ID="chkIsGeneral" runat="server" />
                </td>
            </tr>
            <tr class="Hidden">
                
                <th width="20%">
                    <span class="red">*</span>用户类型：
                </th>
                <td width="30%">
                    <asp:DropDownList ID="ddlUserType" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth"
                        Enabled="false">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th width="20%">
                    创建人：
                </th>
                <td class="right2">
                    <asp:Label ID="lblCreateUser" runat="server"></asp:Label>
                </td>
                <th width="20%">
                    创建时间：
                </th>
                <td width="30%">
                    <asp:Label ID="lblCreateTime" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th width="20%">
                    最后修改人：
                </th>
                <td class="right2">
                    <asp:Label ID="lblUpdateUser" runat="server"></asp:Label>
                </td>
                <th width="20%">
                    最后修改时间：
                </th>
                <td width="30%">
                    <asp:Label ID="lblUpdateTime" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="20%">
                    <h4>
                        所属角色</h4>
                </td>
                <td width="80%" colspan="3">
                    <h4>
                        权限列表</h4>
                </td>
            </tr>
            <tr>
                <td style="width: 20%; vertical-align: top; text-align: left;" id="tdRole" runat="server">
                    <div id="dvRole" runat="server" class="tableStyle3">
                        <asp:SGridView runat="server" ID="sgvRole" Width="100%" ShowActionToolBar="false"
                            AutoGenerateColumns="false" AllowCascade="false">
                            <Columns>
                                <asp:BoundField DataField="RoleName" HeaderText="角色名称" />
                            </Columns>
                        </asp:SGridView>
                    </div>
                </td>
                <td style="width: 80%;" colspan="3" id="tdRight" runat="server">
                    <div id="dvRight" runat="server" class="tableStyle3">
                        <asp:SGridView runat="server" ID="sgvRight" Width="100%" ShowActionToolBar="false"
                            AutoGenerateColumns="false" AllowCascade="false">
                            <Columns>
                                <asp:BoundField DataField="ModuleName" HeaderText="功能名" HeaderStyle-Width="200px"
                                    ItemStyle-Width="200px" />
                                <asp:BoundField DataField="viewright" HeaderText="查看" HeaderStyle-Width="200px" ItemStyle-Width="200px" />
                                <asp:BoundField DataField="addright" HeaderText="新增" HeaderStyle-Width="200px" ItemStyle-Width="200px" />
                                <asp:BoundField DataField="deleteright" HeaderText="删除" HeaderStyle-Width="200px"
                                    ItemStyle-Width="200px" />
                                <asp:BoundField DataField="updateright" HeaderText="修改" HeaderStyle-Width="200px"
                                    ItemStyle-Width="200px" />
                                <asp:BoundField DataField="exportright" HeaderText="导出" Visible="false" HeaderStyle-Width="200px"
                                    ItemStyle-Width="200px" />
                                <asp:BoundField DataField="DataRights" HeaderText="数据范围" Visible="false" HeaderStyle-Width="200px"
                                    ItemStyle-Width="200px" />
                            </Columns>
                        </asp:SGridView>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <%--<div class="tableStyle">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">所属工序</a></li>
            </ul>
            <div id="tabs-1" class="tableStyle">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <div>
                            <table width="100%">
                                <tr>
                                    <td style="width: 20%">
                                        工序：
                                    </td>
                                    <td style="width: 20%" align="left">
                                        <asp:DropDownList ID="ddlProcessName" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth"
                                            Width="133px">
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <div align="right">
                                            <label class="btnStylec png_bg">
                                                <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" CausesValidation="false" />
                                            </label>
                                            </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <div class="divscroll">
                                            <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                                                AutoGenerateColumns="false" AllowCascade="false" DataKeyNames="ProcessNO" OnRowCommand="grdResult_RowCommand"
                                                OnRowDataBound="grdResult_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="NoStandardPartsTypeDetailID" HeaderText="序号" ItemStyle-CssClass="Hidden"
                                                        HeaderStyle-CssClass="Hidden" />
                                                    <asp:BoundField DataField="ProcessNO" HeaderText="工序号" ItemStyle-CssClass="Hidden"
                                                        HeaderStyle-CssClass="Hidden" />
                                                    <asp:BoundField DataField="ProcessLineID" HeaderText="ProcessLineID" Visible="false" />
                                                    <asp:BoundField DataField="ProcessLineName" HeaderText="工序名称" />
                                                    <asp:TemplateField>
                                                        <HeaderStyle Width="35px" />
                                                        <ItemStyle Width="35px" />
                                                        <HeaderTemplate>
                                                            删除</HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:ImageButton ImageUrl="~/App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                                                ID="ibtnDel" />
                                                            <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("NoStandardPartsTypeDetailID") %>'
                                                                CommandName="del" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:SGridView>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>--%>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 140px; margin: 0 auto;">
            <tr>
                <td width="30%">
                    <label class="btnStylec png_bg">
                        <asp:Button ID="btnSubmit" runat="server" Text="确定" OnClick="btnSubmit_Click" ValidationGroup="gSubmit"
                            Width="60px" />
                    </label>
                    <label class="btnStyleb png_bg">
                        <input type="button" id="btnCancel" value="返回" onclick="window.location='/SysManage/UserList.aspx'"
                            style="width: 60px;" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
